var ErieSystemName = "EasyWeb开发平台";
var ErieCopyRight = "&copy; 2012 EasyWeb Framework 版权所有";

// 显示隐藏左边列表
function showMainLeft() {
//    var MainLeftStyle = document.all("LeftF").style;
//	if (MainLeftStyle.display == "none") {
//		MainLeftStyle.display = "";
//		document.images("imgEmLeft").src = "../images/ico_hideleft.gif";
//		document.all("divEmLeft").innerText = "隐藏";
//	} else {
//		MainLeftStyle.display = "none";
//		document.images("imgEmLeft").src = "../images/ico_showleft.gif";
//		document.all("divEmLeft").innerText = "显示";
    //	}
    var MainLeftStyle = $('#LeftF');
    if (MainLeftStyle.css('display') == "none") {
        MainLeftStyle.css('display', 'block')
        $("#imgEmLeft").attr('src', "../images/ico_hideleft.gif");
        $("#divEmLeft").text("隐藏");
    } else {
        MainLeftStyle.css('display', 'none')
        $("#imgEmLeft").attr('src', "../images/ico_showleft.gif");
        $("#divEmLeft").text("显示");
    }
}

// 打印主窗口内容
var ohtmlStr;
function mainPrint() {
    var MainLeftStyle = $("#LeftF");
	if (MainLeftStyle.css('display') != "none") {
		if (confirm("打印该页时是否隐藏左边列表？")) {
		    MainLeftStyle.css('display', 'none');
		    $("#imgEmLeft").attr('src', "../images/ico_showleft.gif");
		    $("#divEmLeft").text("显示");
		}
	}
	var ohtml = $('#contentTD').html();
	ohtmlStr = ohtml;
	ohtml = vbReplace(ohtml, "DivOut", "pad5");
	ohtml = vbReplace(ohtml, "<DIV", "<span");
	ohtml = vbReplace(ohtml, "</DIV>", "</span><br>");
	$('#contentTD').html(ohtml);
	printFrame(mFrame);
}


// 打开全屏窗口
function redirectWin(url) {
	/*document.location.href = url;*/
	var scrWidth  = screen.availWidth;
	var scrHeight = screen.availHeight;
	var CSMWin = window.open(url, "CSMWin", "resizable=1");
	CSMWin.moveTo(0, 0);
	CSMWin.resizeTo(scrWidth, scrHeight);
	window.opener = null;
	window.open('', '_self'); 
	window.close();
}

function resize(){
        window.moveTo(162, 130);
        window.resizeTo(1038, 792);
}

function mexec(url) {
    var cmd;
    cmd = "mFrame.location='" + url + "'";
    eval(cmd);
}

document.write("<script language=\"JavaScript\" src=\"..\/js\/print.js\"><\/script>");
document.write("<script language=\"VBScript\" src=\"..\/js\/vbfunction.vbs\"><\/script>");
